package ordemServico;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "item_ord_serv")
@SequenceGenerator( name = "IOS_ID", sequenceName = "IOS_SEQ", allocationSize = 1 )
public class Item_ord_serv implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id")  
    @GeneratedValue( strategy = GenerationType.IDENTITY, generator = "IOS_ID" ) 
	private int id;
	@Column(name = "id_serv") 
	private int id_serv;
	@Column(name = "desc_serv") 
	private String desc_serv;
	@Column(name = "vlr_serv") 
	private float vlr_serv;
	@Column(name = "qtd_serv") 
	private int qtd_serv;
	@ManyToOne
	@JoinColumn(name = "servord") 
	private EntidadeOrdem servord;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId_serv() {
		return id_serv;
	}
	public void setId_serv(int id_serv) {
		this.id_serv = id_serv;
	}
	public EntidadeOrdem getServord() {
		return servord;
	}
	public void setServord(EntidadeOrdem servord) {
		this.servord = servord;
	}
	public String getDesc_serv() {
		return desc_serv;
	}
	public void setDesc_serv(String desc_serv) {
		this.desc_serv = desc_serv;
	}
	public float getVlr_serv() {
		return vlr_serv;
	}
	public void setVlr_serv(float vlr_serv) {
		this.vlr_serv = vlr_serv;
	}
	public int getQtd_serv() {
		return qtd_serv;
	}
	public void setQtd_serv(int qtd_serv) {
		this.qtd_serv = qtd_serv;
	}

}
